<?php

namespace IDock\Insurance\TPIC\Request;

use Exception;
use IDock\Insurance\TPIC\Request\AllTPICRequest;
use IDock\Insurance\TPIC\Response\ElectronicSignResponse;
use IDock\Insurance\TPIC\Response\OfferOrderPriceResponse;
use IDock\Insurance\TPIC\Response\SaveVehicleResponse;
use IDock\Insurance\TPIC\Response\VehicleModelResponse;
use IDock\Insurance\TPIC\TPICEnums;
use IDock\Visitor\PolicyPaymentVisitor;
use IDock\Visitor\Premium\PremiumCoverageVisitor;
use IDock\Visitor\Premium\PremiumInquiryVisitor;
use IDock\Visitor\Premium\PremiumUnderwritingVisitor;
use IDock\Visitor\VehicleModelVisitor;

/**
 * 获取电子签名
 */
class ElectronicSignRequest extends AllTPICRequest
{
    protected $response = ElectronicSignResponse::class;

    protected $urlTip = '获取电子签名';

    public $route = 'getElecSignUrl';

    /**
     * @var PolicyPaymentVisitor $visitor
     */
    protected $visitor;

    public function generate(): array
    {
        $arr = [
            'order' => [
                'orderNo' => $this->visitor->argc['orderNo'] ?? '',
            ],
        ];
        return $arr;
    }
}
